//
//  MOAlerterTableView.h
//  WCImApp
//
//  Created by alfie on 2019/12/5.
//  Copyright © 2019 WCImApp. All rights reserved.
//

#import <UIKit/UIKit.h>


@class MOAlerterTableView;

@protocol MOAlerterTableViewDelegate <NSObject>

- (void)tableView:(MOAlerterTableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

@end


@interface MOAlerterTableView : UITableView

- (void)attachTitles:(NSArray *)titles title:(NSString *)title message:(NSString *)message;

/** 代理 */
@property (weak, nonatomic) id <MOAlerterTableViewDelegate> alerterDelegate;

/** 底部取消按钮 */
@property (strong, nonatomic) UIButton            *cancelBtn;

- (CGFloat)heightForHeader;

///leftImageView在第几个显示
@property (nonatomic, retain) NSIndexPath * showLeftImageIndexPath;
///文本左边的图片 需要设置size，默认30x30
@property (nonatomic, retain) UIImageView *leftImageView;

@end


